/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.caculate.service;

import cn.net.ecode.common.persistence.Page;
import cn.net.ecode.common.service.CrudService;
import cn.net.ecode.elec.caculate.dao.ElecEarningsCalculateDao;
import cn.net.ecode.elec.caculate.entity.ElecEarningsCalculate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 收益测算Service
 * @author AlanShelby
 * @version 2019-09-06
 */
@Service
@Transactional(readOnly = true)
public class ElecEarningsCalculateService extends CrudService<ElecEarningsCalculateDao, ElecEarningsCalculate> {
	
	/**
	 * 获取单条数据
	 * @param elecEarningsCalculate
	 * @return
	 */
	public ElecEarningsCalculate get(ElecEarningsCalculate elecEarningsCalculate) {
		return super.get(elecEarningsCalculate);
	}
	
	/**
	 * 查询列表数据
	 * @param elecEarningsCalculate
	 * @return
	 */
	public List<ElecEarningsCalculate> findList(ElecEarningsCalculate elecEarningsCalculate) {
		return super.findList(elecEarningsCalculate);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param elecEarningsCalculate
	 * @return
	 */
	public Page<ElecEarningsCalculate> findPage(Page<ElecEarningsCalculate> page, ElecEarningsCalculate elecEarningsCalculate) {
		return super.findPage(page, elecEarningsCalculate);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param elecEarningsCalculate
	 */
	@Transactional(readOnly = false)
	public void save(ElecEarningsCalculate elecEarningsCalculate) {
		super.save(elecEarningsCalculate);
	}
	
	/**
	 * 删除数据
	 * @param elecEarningsCalculate
	 */
	@Transactional(readOnly = false)
	public void delete(ElecEarningsCalculate elecEarningsCalculate) {
		super.delete(elecEarningsCalculate);
	}
	
}